//
//  DYLeftCell.m
//  BaiSi
//
//  Created by mac on 16/11/11.
//  Copyright © 2016年 DeYi. All rights reserved.
//

#import "DYLeftCell.h"
@interface DYLeftCell()
@property (weak, nonatomic) IBOutlet UIView *redView;
    
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;


@end

@implementation DYLeftCell


- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = LHColor(241, 241, 241);
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    _redView.hidden = !selected;
}

- (void)setItem:(DYLeftItem *)item {
    _item = item;
    _titleLabel.text = item.name;
    
}

- (void)setFrame:(CGRect)frame {
    frame.size.height -= 1;
    [super setFrame:frame];
}


@end
